package com.example.demo.Model;

import lombok.Data;

@Data
public class RegionStats {
    //州/省
    private String state;
    //国家/地区
    private String country;
    //病例总数
    private int latestTotalCases;
    //自上一天的变化
    private int diffFromPrevDay;

    public RegionStats(String state, String country, int latestTotalCases, int diffFromPrevDay) {
        this.state = state;
        this.country = country;
        this.latestTotalCases = latestTotalCases;
        this.diffFromPrevDay = diffFromPrevDay;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public int getLatestTotalCases() {
        return latestTotalCases;
    }

    public void setLatestTotalCases(int latestTotalCases) {
        this.latestTotalCases = latestTotalCases;
    }

    public int getDiffFromPrevDay() {
        return diffFromPrevDay;
    }

    public void setDiffFromPrevDay(int diffFromPrevDay) {
        this.diffFromPrevDay = diffFromPrevDay;
    }

    @Override
    public String toString(){
        return ""+state+" "+country+" "+latestTotalCases+" "+diffFromPrevDay;
    }
}
